<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="inventory" tagdir="/WEB-INF/tags/inventory"%>
<table class="com_modi_table" width="100%">	
	<tr>
		<th  class="title" style="padding: 3px 0;"><h4><fmt:message key="inventoryDetail.group.inventoryAuditList"/><h4></th>
	</tr>
</table>	
<c:set var="editURLPath" value="/inventory/inventoryAudit.html?doAction=edit&from=list" scope="page" />
<display:table name="${inventoryAuditList}" cellspacing="0" cellpadding="0" uid="inventoryAudit" class="list_table" export="false" requestURI="">
	<display:column sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.eventType">
		<fmt:message key="inventoryAudit.eventType_${inventoryAudit.eventType}" />
	</display:column>
	<display:column  sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.quantityOnHand" >
		<c:choose>
			<c:when test="${inventoryAudit.preQuantityOnHand != inventoryAudit.postQuantityOnHand}">
				<inventory:quantityOnHandShow quantityOnHand="${inventoryAudit.preQuantityOnHand}"/> ->	<inventory:quantityOnHandShow quantityOnHand="${inventoryAudit.postQuantityOnHand}"/>
			</c:when>
			<c:otherwise>
				<inventory:quantityOnHandShow quantityOnHand="${inventoryAudit.postQuantityOnHand}"/>
			</c:otherwise>
		</c:choose>
	</display:column>
	<display:column  sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.allocatedQuantity" >
		<c:choose>
			<c:when test="${inventoryAudit.preAllocatedQuantity != inventoryAudit.postAllocatedQuantity}">
				${inventoryAudit.preAllocatedQuantity} ->	${inventoryAudit.postAllocatedQuantity}
			</c:when>
			<c:otherwise>
				${inventoryAudit.postAllocatedQuantity}
			</c:otherwise>
		</c:choose>
	</display:column>
	<display:column sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.comment">
		${inventoryAudit.comment}
	</display:column>
	<display:column sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.orderId">
		${inventoryAudit.salesOrder.orderNo}
	</display:column>
	<display:column property="eventHandler" sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.eventHandler" />
	<display:column sortable="false"  decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="inventoryAudit.createTime">
		<fmt:formatDate value="${inventoryAudit.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
	</display:column>
	
</display:table>

<script type="text/javascript">
highlightTableRows("inventoryAudit");
</script>